package com.itheima.demo;

import java.util.Scanner;

public class Java_07 {
    public static void main(String[] args) {
//        int[] arr = new int[]{1,2,3,4,5};
//        for (int i = 0; i < arr.length; i++) {
//            System.out.print(" "+i);
        //调用print方法
        print(100);
    }
    //定义一个方法，打印多行hello world
    public static void print(int a){
        for (int i = 1; i <= a ; i++) {
            System.out.println("hello world");
            System.out.println("第"+i+"次打印");
        }
    }
}
